package cn.blnp.net.flowable.boot.customer.flowable.event.service.impl;

import cn.blnp.net.flowable.boot.customer.flowable.event.CustomFlowableEventType;
import cn.blnp.net.flowable.boot.customer.flowable.event.service.FlowableTaskUrgingEvent;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.flowable.common.engine.api.delegate.event.FlowableEventType;
import org.flowable.common.engine.impl.event.FlowableEventImpl;
import org.flowable.task.service.impl.persistence.entity.TaskEntity;
import org.springframework.stereotype.Service;

/**
 * <h3>自定义催办事件接口实现</h3>
 *
 * @author <a href="mailto:blnp.yibin@qq.com">lyb</a>
 * @version 1.0
 * @since 2025/6/6 16:25
 */
@Slf4j
@Getter
public class FlowableTaskUrgingEventImpl extends FlowableEventImpl implements FlowableTaskUrgingEvent {

    /**
     *  事件对象
     **/
    protected Object entity;
    /**
     *  自定义事件类型
     **/
    protected CustomFlowableEventType customFlowableEventType;

    public FlowableTaskUrgingEventImpl(TaskEntity entity, FlowableEventType type, CustomFlowableEventType customFlowableEventType) {
        super(type);
        this.entity = entity;
        this.customFlowableEventType = customFlowableEventType;
    }
}
